package com.hspedu.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hspedu.seckill.pojo.User;
import com.hspedu.seckill.vo.LoginVo;
import com.hspedu.seckill.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService extends IService<User> {

    /**
     * 登录校验
     * @param loginVo
     * @param request
     * @param response
     * @return
     */
    RespBean doLogin(LoginVo loginVo, HttpServletRequest request
    , HttpServletResponse response);


    User getUserByCookie(String userTicket,
                             HttpServletRequest request,
                             HttpServletResponse response);

}
